import { IsArray, IsBoolean, IsNotEmpty } from 'class-validator'
import i18n from '@/i18n'
import { ApiProperty } from '@nestjs/swagger'
import { FlowFileSaveDto } from './flow-file-save.dto'

export class FlowFileBatchSaveDto {
  @ApiProperty({ description: '是否覆盖同名文件' })
  @IsBoolean()
  cover: boolean

  @ApiProperty({ description: '文件列表' })
  @IsArray()
  @IsNotEmpty({ each: true })
  files: FlowFileSaveDto[]
}
